<?php
namespace App\Observers;

use App\Models\ColorAverage;

// creating, created, updating, updated, saving,
// saved,  deleting, deleted, restoring, restored

class ColorAverageObserver
{
  public function created(ColorAverage $color)
  {
      if (!$color->basecolor) {
          $color->degree();
      }
  }
}
